0

I need to access objects and values inside a JSON using TypeScript.

I did some research and found this library:

https://www.npmjs.com/package/json-query

Are there any other similar, more powerful libraries available?

1 Answer 1

2

You can use lodash or underscore library for the json manipulation which will work perfectly in typescript

There are also 3/4 native ES6 object functions available in typescript which will help you here in case you don't want to use any 3rd party library.

  • map
  • reduce
  • filter
  • forEach
Sign up to request clarification or add additional context in comments.

2 Comments

this is a nice description! I normally use map but these only works on array and mostly the list of data came in forms of array
i will modify my answer to make it more relevant

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.