[ https://issues.apache.org/jira/browse/FELIX-5508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15832033#comment-15832033 ]
David Bosschaert commented on FELIX-5508: ----------------------------------------- But both the Serializer and the Schematizer both contain JSON parsers - copies of the same code actually... Interestingly enough Java 8 has a built-in JSON parser, via the Nashorn scripting engine. You can use it like this: {code}String script = "Java.asJSONCompatible(" + myJSON + ")"; Map res = (Map) new ScriptEngineManager().getEngineByName("javascript").eval(script);{code} I wonder can we possibly remove the JSON Parsers and use this instead? It would introduce a dependency on Java 8... > Multiple JSON Serializers > ------------------------- > > Key: FELIX-5508 > URL: https://issues.apache.org/jira/browse/FELIX-5508 > Project: Felix > Issue Type: Improvement > Components: Converter > Reporter: David Leangen > > There appears to be multiple json serializers in the code base (serializer, > schematizer, and even more recently webconsole). > Would it be worthwhile to consider consolidating them somehow, to avoid > duplicate work? -- This message was sent by Atlassian JIRA (v6.3.4#6332)