Skip to main content
3 votes

How can I serialize a complex type such as Schema.DescribeSObjectResult?

Yes. Don't serialize the Schema.DescribeSObjectResult type. To solve this, you put the necessary fields/information into another map, like in a Map<String, Object>, and serialize that object ...
Renato Oliveira's user avatar
1 vote

System.JSONException: was expecting double-quote to start field name at [line:2, column:5] (System Code)

You have so-called "smart" quotes (“ and ”) interspersed in your json string. That's the issue. The JSON RFC, section 7 requires that only "straight" double quotes (a.k.a. ...
Derek F's user avatar
  • 62.7k

Only top scored, non community-wiki answers of a minimum length are eligible