Why can't I use true/false/null in a Python object fed to json.dumps()?
Question:   * I'm tring to decode(I think that's the right word) JSON to convert true, false, null to True, False, None for python
  * I know I need the `json` library

  * I followed [this thread's answer](http://stackoverflow.com/a/11977844/4462930) but it didn't get me anywhere. 

  * I still receive the same error: `NameError: name 'true' is not defined`

...

    
    
    import json
    
    raw_json = {
    'a':'aa',
    'b':'bb',
    'c':'cc',
    'd':true,
    'e':false,
    'f':null
    }
    
    json_dump = json.dumps(raw_json)
    json_load = json.loads(json_dump)
    

What am I doing wrong/need to do?

Also, I'm coming from a javascript background so it has been a pain trying to
learn the conventions and terms. What are the 'u's prepending each json key in
the other thread's link following 'd2'?


Answer: In your JSON variable `raw_json`, you need to capitalize `True` and `False`.
In Python, Boolean values are capitalized for true and false. When you
serialize it into JSON, they will be lower cased. Also, `None` is the Python
equivalent of `null`.

When you perform a JSON dump, you are taking in a Python dictionary (which
must be valid Python) and outputting a string which follows the JSON standard.
The conversion visually changes the upper cased True, False, and None into
their JSON equivalents true, false, and null.

To answer why there are `u`s on the strings, that is referring to the strings
being Unicode strings.

