10 lines
634 B
Plaintext
10 lines
634 B
Plaintext
1. all single quotes should be double quotes
|
|
2. \"Children - in accreditations and areas of practice has \" which is bad probably a result of json.dumps escaping a quote.
|
|
3. [] brackets should not be "[]" and its contents should be double quoted.
|
|
so thats accreditations,areas_of_practice,languages
|
|
4. Name apostrophies can be ' and ' since they are double quoted you should not need to escape them. In the curl if you replace ' by unicode encoded ' (which is \u0027), then it works:
|
|
|
|
Send the json file directly with:
|
|
curl -H "Content-type:application/json" --data @post.json http://dumbdomain.com/solr/collection2/update/json
|
|
|