Feature suggestion - Show as Json when debugging a String variable

Answered

I work in a project that consumes json apis. It would be awesome if idea could show as Json when debugging a String variable

3
3 comments
Avatar
Permanently deleted user

I think i found a way to do this: with data views 

com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); Object json = mapper.readValue(this.toString(), Object.class); return mapper.writerWithDefaultPrettyPrinter().writeValueAsString(json);
1
1
Avatar
Permanently deleted user

You can use the following editor: http://pythontojson.com/

0

Please sign in to leave a comment.