move json parser into thrift to simplify building/testing

this extracts and repurposes the jsx json parser for use by thrift
with permission from it's author

fixes THRIFT-1357