Skip to content
Advertisement

how to fix SQL server Json text is not properly formatted. Unexpected character is found at position 151

Im working on a table that has a column in JSON format and I want to extact the coordinate value from that column.

So I run the following code:

And I get the following error after 5 mins of running

Msg 13609, Level 16, State 1, Line 27 Json text is not properly formatted. Unexpected character ‘”‘ is found at position 151.

When I try to check some rows with top 200 * below code returns results withour any error

I guess I have a row that is causing the error but I dont know how to identify it or exclude that row and return the results.

Advertisement

Answer

I managed to run around the problem with this where statement in case someone has same problem I hope it helps!

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement