parsing json in C# with json.net requires the json.net .dll?


Ansari
HOME ยป C & C++ & C#

I have a simple c# library (myLib.dll) that can be registered to applications. It can be used as a plug-in. Now i would like to use the json.net library from Newton King, but i do not want to have 2 .dll that i have to send around.


Is there a way to use json.net and somehow embed the .dll into myLib.dll that in the end i have only my .dll?


Edit: to clerify: Is it allowed to merge the jsonNET.dll with my own myLib.dll so that only myLib.dll will be visible as a file?


ok it has the MIT License: http://json.codeplex.com/license


Related to : parsing json in C# with json.net requires the json.net .dll?
parsing json in C# with json.net requires the json.net .dll?
C & C++ & C#

I have a simple c# library (myLib.dll) that can be registered to applications. It can be used as a plug-in. Now i would like to use the json.net library from Newton King, but i do not want to have 2 .dll that i have to send around.


Is there a way to use json.net and somehow embed the .dll into myLib.dll that in the end i have only my .dll?


Edit: to clerify: Is it allowed to merge the jsonNET.dll with my own myLib.dll so that only myLib.dll will be visible as a file?


ok it has the MIT License: http://json.codeplex.com/license


how to identify json object or json array from a json parsing text?
C & C++ & C#

i hav one problem , i parsed xml using json parsing and get json text. now i have to get values from xml. from that json text how i can identify jsonObject, jsonArray etc...


Accessing values in JSON response - error generated - json.JSON.typeMismatch(JSON.java:100)
C & C++ & C#

I have the following response:


{
"data": [
{
"name": "This is a test 123",
"start_time": "2013-12-02T18:00:00+0530",
"end_time": "2013-12-02T20:00:00+0530",
"location": "Mount Lavinia",
"id": "525447507473743",
"rsvp_status": "attending"
},
{
"name": "This is a test event",
"start_time": "2013-12-02T18:00:00+0530",
"end_time": "2013-12-02T20:00:00+0530",
"location": "Mount Lavinia",
"id": "560383743988530",
"rsvp_status": "attending"

Why do I get an “unexpected token” error when parsing JSON using Ruby's json gem?
C & C++ & C#

The JSON object I'm parsing is at http://api.4chan.org/3/catalog.json


Here is my Ruby code:


['open-uri','nokogiri','json'].each{|g| require g}
json_test = File.open('json_test.JSON','r').read
board_cat_body = Nokogiri::HTML(open('http://api.4chan.org/3/catalog.json'))
puts JSON.parse(board_cat_body)

Result (it's very long so I took a part of it out):


C:/Ruby193/lib/ruby/1.9.1/json/common.rb:148:in `parse': 387: unexpected token at '{"no":248019,"sticky":1,"closed":1,"now":"12/19....

However, if I copy and paste the contents of http:/



HD Wallpapers
3D
3D Abstract
City
Celebrities
Indian Celebrities
Cars
Travel
Girls
Animals Birds
Movies
Sports
Black White
Nature
Planes
Anime
Food Drink
Dreamy Fantasy
Architecture
Games
Space
Holidays
Flowers
Love
Artistic
Baby
Beach
Bikes Motorcycles
Macro
Computers
Vector
Funny
Army
Textures
Brands
Misc
Music
Other
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .