Add part of JSON deserialization, add changes to compatibility with 1.6
JVM