Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scientiffic notation in json #32

Closed
krzysztofrusek opened this issue Jul 10, 2014 · 1 comment
Closed

scientiffic notation in json #32

krzysztofrusek opened this issue Jul 10, 2014 · 1 comment

Comments

@krzysztofrusek
Copy link

Scientiffic notation is not handled in json.
Here is an example:

flatc.exe -b monster.fbs monsterdata.json

monsterdata.json:

{
  pos: {
    x: 0.001,
    y: 2,
    z: 3
  },
  hp: 80,
  name: "MyMonster"
}

The abowe works, but this doesn't:

flatc.exe -b monster.fbs monsterdata.json
flatc.exe: line 3: expecting: , instead got: ♦

monsterdata.json:

{
  pos: {
    x: 1e-3,
    y: 2,
    z: 3
  },
  hp: 80,
  name: "MyMonster"
}
@ghost
Copy link

ghost commented Jul 10, 2014

Fixed.

@ghost ghost closed this as completed Jul 10, 2014
kakikubo pushed a commit to kakikubo/flatbuffers that referenced this issue Apr 19, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant