0

Is there a way to to tell Jackson parser to go to another JSON within an external JSON?

Just to simplify, I want to do something like this

{
    "id" : 100,
    "myObject" : {
        "embeddedKey" : "embeddedValue"
    }
}
Azat
  • 6,745
  • 5
  • 31
  • 48
Moshe Tsabari
  • 362
  • 3
  • 17
  • "Yo dwag i heard you liked Json so i put Json in your Json", More seriously, what do you want to do ? Converting Objects in a Object into Json ? – damus4 Mar 21 '15 at 17:29
  • myObject.json contains all the data and I want Jackson to spool myObject.json in to the above json string – Moshe Tsabari Mar 21 '15 at 17:30
  • where exactly is myObject.json located...? – jtahlborn Mar 21 '15 at 17:33
  • both files are in my project . I need to construct json to mock big BO object. this is way I want this behavior. – Moshe Tsabari Mar 21 '15 at 17:35
  • if you want the data parsed together, why do you have it in two separate files? – jtahlborn Mar 21 '15 at 17:41
  • Because my main object contains a lot of objects and I thought it will be more usable for future development. If some other developer want to reuse my json insted of copy paste . Think about this like import jason into json – Moshe Tsabari Mar 21 '15 at 17:48
  • If I understand correctly, you want to tell Jackson deserializer to *navigate* the *links* specified in some attributes, right? – fps Mar 21 '15 at 19:10
  • possible duplicate of [Read embedded object in Jackson](http://stackoverflow.com/questions/10036530/read-embedded-object-in-jackson) – fps Mar 21 '15 at 19:33

0 Answers0