Users Pricing

forum

Home Forums Can Json.Net handle a List<object>? – MindStick

Can Json.Net handle a List<object>?

Royce Roy 3935 28 Jan 2014

List<User> list = LoadUsers();

JObject json = new JObject();

json["users"] = new JValue(list);

Doesn't seem to be working?

Error:

Could not determine JSON object type for type System.Collections.Generic.List


1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md