-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change JSON property Name #27
Comments
Hi Sérgio, good idea, thank you for that. Cheers, Uwe |
Hi Sérgio, I've implemented the changes. Can you please test? (Branch "issue_27") Test ABAP -> JSON:
Result:
Test JSON -> ABAP
Result:
Cheers, Uwe |
Hello @se38 , `METHOD set_name_mappings.
ENDMETHOD.` What do you think? |
Good idea, will do (but with old syntax, because the class should be downward compatible down to 7.02. |
Implemented lower case ABAP names and merged with Master branch |
Hello Uwe,
First of all thanks for all the work done in this library. Impressive!
I am trying to create the following JSON with zJSON:
{
"electronic_vault_subscription_enabled": true,
"paper_documents_distribution_enabled": true,
"electronic_documents_distribution_enabled": true,
"electronic_payslips_opted_out": true
}
Typically I create a DDIC structure and then use the CREATE_WITH_DATA method to generate the JSON.
Problem here is the length of the JSON property fields since in DDIC structure components have a max size of 30 chars.
I didn't find any method I could use to make a transformation on the property names. Is this possible to achieve with the current stage of zJSON?
Maybe the CREATE_WITH_DATA method could have have an import parameter for name_mappings ? (like it is done in constructor for /UI2/CL_JSON)
Thank you
Sérgio
The text was updated successfully, but these errors were encountered: