used in fabrique-js to extract metainformation from java and convert it to json.