Compatibility changes on JSONConstructor

changes getSessionInfoJSON
changes TestJSONConstructor
mainly on the attribute