Added support for function names and bodies. Each property key is treated as a function name and the body extends to the end of the corresponding value.