Steemd / NodeJS / Unable to JSON.parse a specific comment

in #nodejs9 years ago

I ran into a problem while working on rebuilding the index for SteemShovel.com and upgrading the search options.  I was using piston.rocks to index the blocks but it was too slow so I'm talking directly to steemd over the Websocket api.  I am blasting through blocks like crazy now until I hit block  3061327.  For some reason the comment id  2.8.51129 breaks the JSON.parse() method when I try to parse it.  What's really odd is that if I copy and paste the stringified JSON directly into a test.js file and assign it to a variable, it works fine. I can also use an online JSON parser and it works fine.  I am really at a loss here as to what the problem is.  

I'm doing a simple "get_content" call to steemd and getting back:

If anyone has any idea what the problem is please let me know.  I don't want to just skip the block but I also don't want to manually parse the string to get the details either.

Coin Marketplace

STEEM 0.16
TRX 0.27
JST 0.039
BTC 102545.79
ETH 2479.94
USDT 1.00
SBD 0.93