Hello,
I want to use piqi for converting a json file to a protocol buffer file. I use the following command
$ ./piqi convert -f json -t pib sample.json -o
sample.json:1:1: default type for JSON object is unknown
The json file is downloaded from
json.org{
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para": "A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"
}
}
}
}
}
I have also tried converting into a piq format but got the same error
$ ./piqi convert sample.json
sample.json:1:1: default type for JSON object is unknown
Can you please guide me in the right direction?
thank you
rifo