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

Allow changing "root" object name. #74

Closed
shanielh opened this issue Jul 4, 2017 · 3 comments
Closed

Allow changing "root" object name. #74

shanielh opened this issue Jul 4, 2017 · 3 comments

Comments

@shanielh
Copy link

shanielh commented Jul 4, 2017

I have an object that looks like this :

screenshot from 2017-07-04 10 08 45

I would like to remove the "root" object name so it'll look more like the source json :

{
   "time":"7/4/2017, 10:07:00 A ...",
   "created_at":"Tue Jul 04 07:06:58 ...",
   "id":882133618931286000,
   "id_str":"882133618931286016",
   "text":"https://t.co/6S1JWqQ ...",
   "display_text_range":[...],
   "source":"....",
   "truncated":false,
   "in_reply_to_status_id":null,
   "in_reply_to_status_id_str":null,
   "in_reply_to_user_id":null,
   "in_reply_to_user_id_str":null,
   "in_reply_to_screen_name":null
}
@mac-s-g
Copy link
Owner

mac-s-g commented Jul 9, 2017

just posted #78

that allows you to pass false or null to the name property.

when you pass one of those two values, you'll get something like this:

root-false

@mac-s-g
Copy link
Owner

mac-s-g commented Jul 9, 2017

published!

  • react-json-view@1.10.6

let me know what you think

@mac-s-g mac-s-g closed this as completed Jul 9, 2017
@shanielh
Copy link
Author

shanielh commented Jul 9, 2017

Amazing. Thanks 👍🏼

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

2 participants