Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Windows have a JSON API that can be called from C?

Tags:

json

c

winapi

api

Is there a native implementation of JSON in Windows that I can call from C? If not, what about .NET or C#? Or what if any library or implementation do people use when they wish to use JSON in a Windows app?

like image 883
hippietrail Avatar asked Mar 27 '11 12:03

hippietrail


2 Answers

Yes, there is a built-in Windows JSON parser: http://msdn.microsoft.com/en-us/library/system.web.script.serialization.javascriptserializer.aspx

It can be called from a native language using the .NET interop facilities (COM Callable Wrapper), which may be more work for you than a truly native library, as first answer suggests.

like image 147
Scott Jones Avatar answered Sep 24 '22 15:09

Scott Jones


There is a long list of such things on the JSON homepage. Take your pick.

like image 21
David Heffernan Avatar answered Sep 25 '22 15:09

David Heffernan