Fix JsonResource serializer
Fix JsonResource serializer

The usage of inner method in the serializer were slowing down the
serialization process. This new version uses class method instead,
resulting in the parsing only once of each methods.

pyecore/pyecore,aranega/pyecore