I have been working with JSON REST service for Elastic Search a lot lately. The most common problem I have come across is the encoding and coding of the HTML in the JSON.
At this point I have tried a combination of htmlencode
and htmldecode
but some of the characters come out as funny.
What is the best way of handling this HTML?
I used JSON.NET for encoding and decoding and it seems to work without any problems. I would highly recommend this for anybody looking to work with JSON.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.