0

I'm trying to convert numbers as shown in figure below to a JSON key with value in an object. Please can someone help me with that? The image below shows what I'm trying to do in notepad++.

Example

0

Use search and replace in notepad++ with de regular expresion option tilded

  • search for \b(\d+),\{
  • replace with "\1":{

It isn't pefect, but works

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.