Adding JSON output for the java prototypes

- Created a simple JSON string builder lib so its
  easier to build the JSON strings.
- Fixed errors and missing symbols on Mac Build