[ADD] jsonifier: with_fieldname option - #2668
Conversation
15c38c7 to
f7fc9f5
Compare
|
Failing for reduced coverage, will add tests- |
field string as well
f7fc9f5 to
952deac
Compare
|
WIP. small fixes and tests needed. |
f84cbae to
ab799f4
Compare
ab799f4 to
ce10761
Compare
|
@thomaspaulb complete with passing tests. Removing WIP. As a possible jsonifier addition the feature "default_function" could be implemented in a separate MR, unrelated to this All explanations and examples moved to usage.rst |
|
I like the refactor to using a sister key, it's less intrusive. |
|
This PR has the |
|
/ocabot merge minor |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at 9f5af43. Thanks a lot for contributing to OCA. ❤️ |
|
I'm forward porting from 14 to 16... it's a bit painful as commit were not squashed here. Next time, please, do it if the feature is just one at the end 😉 |
Jsonifier adds an extra key called fieldname_$field with field name on the same level of the $field key.
Does not disrupt, function feature or specialized resolvers.