question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No specific order in the generated json

See original GitHub issue

First of all thanks for providing this component. It was really useful. However, when the json is generated, it does not seem to follow any specific order. Looks as if it picks randomly from individual component files.

{
  "users.button1": "Add",
  "roles.button2": "Delete",
  "roles.button1": "Add",
  "users.button2": "Delete"
 }

It will be nice if it is ordered either by alphabetical or by the order in which it is listed in the individual component files.

{
  "users.button1": "Add",
  "users.button2": "Delete",
  "roles.button1": "Add",
  "roles.button2": "Delete"
 }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Moinaxcommented, Apr 7, 2016

I see that there is already a PR #17 . I hope this will be merged very soon 😃

0reactions
bartvanandelcommented, Apr 12, 2016

You’re welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - JSON order mixed up - Stack Overflow
I understand that JSON doesn't have an order and a library is free to generate any order it feels like, but there's a...
Read more >
encoding/json: no way to preserve the order of map keys
The encoding/json library apparently offers no way to decode data into a interface{} without scrambling the order of the keys in objects.
Read more >
Swift Dictionary order does not ma… | Apple Developer Forums
I'm working on parsing a JSON file into a dictionary: // JSON Payload File { "orderPlaced": "done", "prep": "pending", "shipped" : "pending" }....
Read more >
Ordering Elements within JSON Objects - FileMaker Hacks
If you've generated JSON objects via FileMaker, you're likely aware of the disparity between the order in which you specify the elements, ...
Read more >
MySQL 8.0 Reference Manual :: 11.5 The JSON Data Type
MySQL supports a native JSON data type defined by RFC 7159 that enables efficient access to data in JSON (JavaScript Object Notation) documents....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found