Hi i am facing a problem while serializing the special characters.I need to display Norweign characters.I need to display TÅRNPLASS but it is serializing as TÃ…RNPLASS.Can anyone help me regarding this.Thanks in advance
To show the output in the correct way you have to set the Content-type for your response. It's just a starting poin but I can't help you in other ways because you didn't add more information about your specific problem.
Related
I'm working with the Behance API to build a plugin. I got the API key and built the URL to get my project list data in JSON format.
The weird thing is that, the JSON is not complete at all, there are many project missing, 14 missing to be specific.
Does someone have any idea?
Thanks in advance.
Found the solution here: https://help.behance.net/hc/en-us/community/posts/202357274-Number-of-Behance-API-request-results-limited-to-25-
It seems that by default the number of items is limited to 25. To get more you need to paginate adding a query get after the URL.
ex: http://www.behance.net/v2/users/gokhanaltinigne/projects?api_key=##&per_page=25&page=2
I have a json object which contains some values that include some special chracter. For example {UserName":"UserTest","Password":"OImqNlK/tLwUzKnt1rA1OA=="}
I use it as an object parameter to call to web Api but I can't get it on Api server.
it works fine if I remove the special characters. For example:
{UserName":"UserTest","Password":"OImqNlKtLwUzKnt1rA1OA"}
Please help me fix it. Many thanks!
First page when I put "Json Special Characters" into google : here
To be concrete to your question, this is the way
{UserName":"UserTest","Password":"OImqNlK\/tLwUzKnt1rA1OA=="}
I'm trying to figure out why my parsed request(a json from an jquery ajax, cross domain) is looking a bit strange.
GET /sendjsondata?callback=_testcb&{%22amount%22:1800,%22name%22:%22Vasy%20Jon%22,%22cnp%22:232323,%22coborrower%22:true,%22device%22:%22Desktop%22}&_=1415883870387 404 3.346 ms - 1303
I can create a function to retrieve the piece between braces and then applying a new polish to remove "%22", but I think that I'm dooing a mistake somewhere in my code and that's why I don't obtain a clean json object and maybe someone can tell me where is the issue.
Thank you.
URLs use a special encoding to represent special characters. %22 equals ". Whatever framework you are using should take care of decoding this. Otherwise look for urlencode()/urldecode() functions.
My object is to be able to get the data from a notesdocument as JSON
This I can do by using the Domino Data Service via the URL.
The rich text fields are translated to HTML but gets contentTransferEncoding: "quoted-printable"
Is there any way I can avoid that?
Alternatively - another method with which I can get json from all the types of fields in a document - using XPages or java?
Thanks in advance
Maybe DomJson by Michael Nielsen can help you. It is similar in functionality as Domino Data Service but might offer what you need with regards to rich text fields. If not, then you can extend it to your needs since it's open source :-)
I have implemented webservice and call this webservice using JSON.
But i got error like "JSON.parse: bad control character in string literal"
Please give me a solution.
Thanks in advance.
Can you provide an example of what your webservice is returning when you call it?
It sounds as though you've got an invalid character in the JSON string, which is preventing it from being parsed, but without more detail I can't really provide you a better answer.