json struct rethinked