Update to parser

Parser updated. It works correctly for only one layer.
JSON_example.txt contains the correctly parsed JSON format