Monday, March 25, 2013

Update to xmlsh 1.2.3

Update to xmlsh 


I recently pushed an update to xmlsh (v 1.2.3) and  all dependant extension modules.
Full release notes are here: (for the core)

Just some random notes on improvements
  • New RANDOM32 and RANDOM64 variables
  • Improved http command by switching to Apache httpclient
  • MUCH better JSON support (to be documented)
  • A log window for xmlshui makes using it as a debugger much easier
  • Improvemetns to xurl and urlencode so that you can create safe URL's much easier by passing in all the components of a URL and query as separate strings. - Critical for creating complex REST calls.
  • various bug fixes

In addition to core, some enhancements to aws, marklogic, and twitter extensions.

Tuesday, January 22, 2013

JSON Support

Today I added the beginnings of native JSON support in xmlsh.  This is in SVN only, no new releases yet.  I am soliciting oppinions on features for JSON.

Why JSON in xmlsh ?  Well I have to learn to stop hating and "Love the bomb".
JSON is prevalent in the web world.  I want to add better support for web services.  While the existing json2xml command works fine it is a bit clumbsy.   So I decided to support native JSON parsing with "jsonread" and JSONPATH with the "jsonpath" command.   Also variables can be pure parsed JSON objects.  

From here what ? This is a good start but I would like the equivilent of <[ xquery ]> but to work on JSON.  Maybe thats overkill ?  How about simple array and member access natively like   $X.Y[2]

Not sure how far I want to go with this.

Suggestions welcome !

-David