w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Processing JSON using Pig 0.11.1, source data has carriage returns between JSON objects

Your JSON isn't properly formatted; it needs to be formatted as an array (notice the beginning square brackets and the commas separating key:value "dictionaries":

[
    {"values":{"x":447100,"y":0},"key":"rpi/SBS_01"},
    {"values":{"x":454663,"y":154},"key":"rpi/SBS_01"},
    {"values":{"x":455100,"y":0},"key":"rpi/SBS_01"},
    {"values":{"x":456100,"y":0},"key":"rpi/SBS_01"},
    {"values":{"x":457100,"y":0},"key":"rpi/SBS_01"}
]

You can use a tool like JSONLint to validate your JSON.

Edit: notice too you're also missing a colon between "values" and the next { on your second line.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.