ThomasWeinert / FluentDOM

A fluent api for working with XML in PHP
https://thomas.weinert.info/FluentDOM/
MIT License
338 stars 20 forks source link

Loader for JSONx #14

Closed ThomasWeinert closed 10 years ago

ThomasWeinert commented 10 years ago

Add a loader for JSONx. This loader would convert JSONx into JsonDOM, allowing easier Xpath expressions.

<json:object>
  <json:string name="ticker">IBM</json:string>
</json:object>

would be converted to:

<json:json>
  <ticker>IBM</ticker>
</json:json>

If here is a loader, it would make sense to add a serializer, too. So you can save the loaded file into the original format.

ThomasWeinert commented 10 years ago

Implemented, converting the JsonDOM back to JSONx is a transformer, not a serializer however. It generates a DOM document after all.