Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

(abort)METRON-449 - JSON Parser should unfold nested maps #270

Closed
wants to merge 12 commits into from

Conversation

ottobackwards
Copy link
Contributor

For greater flexibility and utility the JSONMapParser should support unfolding maps to arbitrary depths.

This change introduces a new function called recursively to handle this, because the enum lambdas cannot reference themselves.

cestella and others added 12 commits September 7, 2016 13:47
The JSONMapParser only supports unfolding of maps at the root of the
JSON object.  It would be better if it could unfold to arbitrary depths
for broader range of support.

This is added by introducing recursion to the UNFOLD functionality.
Because you can’t self reference in the enum lambda, I have added a
private function which can recurse and had the lambda call that.
It is possible that there is a better way to implement this, so
hopefully that will come out in review.
@ottobackwards
Copy link
Contributor Author

I don't think I should be carrying the other commits. I didn't rebase. I'll redo

@ottobackwards ottobackwards deleted the METRON-449 branch September 24, 2016 13:19
@ottobackwards ottobackwards changed the title METRON-449 - JSON Parser should unfold nested maps (abort)METRON-449 - JSON Parser should unfold nested maps Sep 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants