-
Notifications
You must be signed in to change notification settings - Fork 16
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
Skip empty nodes at serialization #121
Comments
Do you mean without filter ? https://github.com/sbcgua/ajson#predefined-filters Also:
|
I would go with the most famous isEmpty implementation: It's working differently now: ajson/src/libs/zcl_ajson_filter_lib.clas.locals_imp.abap Lines 11 to 18 in 2504b31
I changed my custom empty filter to the following which also removes rv_keep = boolc(
( iv_visit = zif_ajson_filter=>visit_type-value AND
( is_node-type = zif_ajson_types=>node_type-string AND is_node-value IS NOT INITIAL OR
is_node-type = zif_ajson_types=>node_type-boolean OR
is_node-type = zif_ajson_types=>node_type-number AND is_node-value <> 0 ) ) OR
( iv_visit <> zif_ajson_filter=>visit_type-value AND is_node-children > 0 ) ). |
This new option will skip all the nodes that have no content:
The text was updated successfully, but these errors were encountered: