r - melt function applied to json input replaces some values with factors -
i have following json file: { "observations": [ { "type": "ob_type_1", "data": { "dynamic": { "sensor": [ { "timestamp": 552625694285098, "a": 1.4921862, "b": 8.613739 }, { "timestamp": 552625699285098, "a": 0.6907272, "b": 7.6243353 } ] }, "static": { "class1": "abc", "class2": "xyz" } } } ] } i import using rjson: library(rjson) raw_json <- fromjson(file=json_file) to reproduce please use: raw_json <- structure(list(observations = list(structure(list(type = "ob_type_1", data = structure(list(dynamic = structure(list(sensor = list( str...