views:

137

answers:

2

Sorry, this might be a dumb question but I have no idea how to google this... I've got output from a CLI tool and I was wondering, what the format is called. I wouldn't want to write a parser myself if it's a common format, and I'm sure it is.

It looks like this;

statusList {
  status {
    int  time="1260878400"
    value {
      char value="197773F100"
      char type="RGF"
    } #value
  } #status

  status {
    int  time="1260899700"
    value {
      char value="347663E100"
      char type="RGF"

    } #value
  } #status
} #statusList

Thanks!

+1  A: 

Looks very much like JSon to me. It is not exactly the same, but appears to have most of the same constructs.

Oded
?? Because it uses curly braces? Because other than that, I'm not seeing it. JSON doesn't use types, doesn't use `=` for initialization, doesn't use newline as a terminator, doesn't allow the same identifer to be repeated at the same level, etc., etc.
T.J. Crowder
A: 

It looks like a JSON variant.

DanDan