Port StringStream to NMF
Adjust core/json formatting and update json::* documentation
Use .cpp to define functions