0

Check this from the documentation of Klaxon. With toJsonString(true) I can remove the JsonArray(value=[...]. But the square brackets are still there. Is there another way to remove everything? I just want to print the value.

Before toJsonString(true):

JsonArray(value=[ValueOfJSON])

After toJsonString(true):

["ValueOfJSON"]

That's what I want:

"ValueOfJSON"
jamesxbrown
  • 135
  • 2
  • 11

1 Answers1

1

A simple hackaround is:

your_string_name.split('"')[1]
dustblue
  • 557
  • 5
  • 14