Parsing Invalid or incorrect JSON as String

Parsing JSON using Python:

There was a broken JSON which was not allowing me to use JSON PARSER or GSON in java, hence i wrote the python program with the regular expression.

Invalid or Incorrect  on Incomplete JSON Parsing: 

after constructing the JSON using Python, i was able to use this as an udf in pig.

 

Used above python program as an UDF in Pig Programming.

 

Tried with JAVA UDF:

since the JSON was broken and it was incomplete, i was unable to use GSON or JSON Parser, hence i tried to parse it as string, however it did not allow me to extract more than one document neither using substring or Regular Expression pattern matcher object.