Home » Java » How to split a text file in java [on hold]

How to split a text file in java [on hold]

Posted by: admin July 12, 2018 Leave a comment

Questions:

I have a text with this form:

{
  { "name”:”X”,
    "price”:”X”,
    "stock”:”X”,
    "description”:”X”,
    "format”:”X”
  },
  { "name”:”Y”,
    "price”:”Y”,
    "stock”:”Y”,
    "description”:”Y”,
    "format”:”Y”
  }
}

And I want to split it and have like name = (name in the text),
price = (price in the text), etc

Answers: