question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide support for direct mapping to JSON string.

See original GitHub issue

In some languages (like PHP for example) there is possibility to directly map query result into JSON string which makes a lot of sense when we don’t need to manipulate the result returned from query execution which would result in better performance due to eliminating extra step of mapping to application models (and then mapping to JSON string later on).Is there any plan to add such a feature to SqlClient?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Wraith2commented, Feb 14, 2020

This is a job normally done by several kinds of mappers and wrappers like EFCore or Drapper. While the same sort of functionality could be added into SqlClient there’s nothing it can do that those projects (and others) don’t already do. Why would it be a good idea to add the functionality at this level?

0reactions
Georgy-Losenkovcommented, Jun 18, 2020

@Wraith2, I completely agree with you. I am sorry that I have not addressed question to correct person.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java - Is there a direct way to convert Map<String, List ...
I just tried the following. Map<String, List<String>> map = new HashMap<>(); List<String> list = new ArrayList<>(); list.add("First in ...
Read more >
Mapping a Dynamic JSON Object with Jackson
In this quick tutorial, we'll learn multiple ways of mapping dynamic JSON objects into Java classes.
Read more >
JSON methods, toJSON
JSON supports plain objects, arrays, strings, numbers, booleans, and null . JavaScript provides methods JSON.stringify to serialize into JSON ...
Read more >
JSON Mapping
The JSON Mapping application will allow an integrator to select an integration object structure and supply a sample JSON snippet from which a...
Read more >
i am passing the below request as input and there is direct ...
Problem :- i am passing the below request as input and there is direct mapping of filed . where as input is xml...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found